//
//  OpenSetURL.m
//  ClassManager
//
//  Created by mac on 2017/12/12.
//  Copyright © 2017年 GZX. All rights reserved.
//

#import "OpenSetURL.h"

@implementation OpenSetURL

+(void)OpenSetUrlWithURLString:(NSString *)URLString{
    
    NSString *version = [UIDevice currentDevice].systemVersion;
    NSURL *url = [NSURL URLWithString:URLString];
    if ([ [UIApplication sharedApplication] canOpenURL:url]){   // 看是否 允许跳转
        if (version.doubleValue >= 10.0) {
            [[UIApplication sharedApplication]openURL:url options:@{} completionHandler:^(BOOL success) {


            }];
        } else {
            [[UIApplication sharedApplication] openURL:url];
        }
    }
}



@end
